package cn.lg.soar.common.enums;

import cn.lg.soar.common.annotations.DictDefine;
import cn.lg.soar.common.data.dict.IDict;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @author luguoxiang
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
@DictDefine(name = "星座")
public enum ConstellationEnum implements IDict<Integer>, IEnum<Integer> {
    UNKNOWN("保密", 0),
    ARIES("白羊座", 1),
    TAURUS("金牛座", 2),
    GEMINI("双子座", 3),
    CANCER("巨蟹座", 4),
    LEO("狮子座", 5),
    VIRGO("处女座", 6),
    LIBRA("天秤座", 7),
    SCORPIO("天蝎座", 8),
    SAGITTARIUS("射手座", 9),
    CAPRICORN("摩羯座", 10),
    AQUARIUS("水瓶座", 11),
    PISCES("双鱼座", 12);

    ConstellationEnum(String label, Integer value){
        this.label = label;
        this.value = value;
    }

    @JsonValue
    private final Integer value;
    private final String label;
    @Override
    public Integer getValue() {
        return value;
    }

    @Override
    public String getLabel() {
        return this.label;
    }

}
